home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-06-21 | 3.3 KB | 72 lines | [TEXT/CWIE] |
- ============================================
- Outline Table Demo
- John C. Daub
- 10 July 1997
- ============================================
-
- A simple demonstration of the Outline Table classes, part of the PowerPlant
- "Constructor Additions".
-
- The Outline Table classes are based upon LTableView and friends and of
- course follow the same basic conventions therein -- if you are not
- familiar with LTableView, you might want to read the PowerPlant Advanced
- Topics manual's chapter on Tables in PowerPlant (as well as examine
- the example code on tables on the CW Reference CD).
-
- However, the outline table classes do provide for some different and
- interesting functionality -- there are some intracacies that just have to
- be watched for.
-
- Doesn't cover every possible feature the outline table classes have nor
- every potential combination of table function and features, but at
- least covers the basics to get one started. :-)
-
- The demo displays the contents of the #1 volume in the VCB queue in
- a quasi-Finder-like fashion (since that's somewhat the point behind
- the class, to replicate the Finder's table/list view). It will only
- display visible files, and will specify directories as a collapsible
- row (with its contents as subitems, of course) and anything not a
- directory is considered a file. You can even double-click on an
- entry and an "Open Document" AppleEvent will be sent to the Finder
- to open the selected item (just to be cute). :-)
-
- The demo does not demonstrate the drag and drop capabilities that
- the outline classes have. Nor does it demonstrate any of the pane-hosting
- and in-place editing type features and functionality that the outline
- classes can do (this is sthe sort of thing that can be done in tables
- throughout Constructor, e.g. the project window, the project inspector
- window, etc.). Maybe I'll do this in the future, meantime you can
- consider it a good learning exercise :)
-
- Two big recommendations I can give you:
-
- 1. Ensure you understand how the PowerPlant table classes work. Go through
- the chapter on tables in the PowerPlant advanced topics manual, go
- through it's sample code, and go through the other sample table
- codes on the Reference CD. It's never good to build a house on sand. :)
-
- 2. Read through ALL of the outline table classes (and their related
- classes) source code. There are lots of comments in the sources that
- explain what to do, and of course nothing is better than the source
- itself to explain just what something does. By reading the source code
- (and reading it many times if you have to until you really understand
- it) will greatly benefit you in the long run. Again, don't build a house
- on sand.
-
- Please remember, this is a simple demonstration application. It
- is not a robust implementation of the table classes, it is not a robust
- replacement for the Finder, and might even have problems with
- the displaying the cutesy choice of data -- it's just not meant to
- be robust. If you do find bugs, please do let us know of course, but
- please don't expect this to do more than it's intended to do. However,
- if you would like to see it do more, consider it a good learning
- exercise for the reader. :)
-
-
- If you find any problems with this demo, have any suggestions, feedback,
- etc, please fill out the appropriate email report form in the Release
- Notes folder and send that along with your comments to support@metrowerks.com.
-
- John C. Daub
- support@metrowerks.com
-